package com.mail.anteater.bean;

public enum Category {
	INBOX,
	OUTBOX,
	UNDEFINED;
	
	public static Category getStorable(String cat) {
		Category category = null;
		try {
			category = Category.valueOf(cat.toUpperCase());
		} catch (IllegalArgumentException ex) {
			category = Category.UNDEFINED;
		}
		return category;
	}
}
